#ifndef C_DX_MESH_COMPONENT_H_
#define C_DX_MESH_COMPONENT_H_

namespace CDXMeshComponent
{

#pragma pack(1)
typedef struct MeshTriangle
{
	unsigned short index[3];

	MeshTriangle(unsigned short i1, unsigned short i2, unsigned short i3)
	{
		index[0] = i1;
		index[1] = i2;
		index[2] = i3;
	}

	MeshTriangle() { memset(index, 0, sizeof(index[0]) * 3); }

	unsigned short operator[]( int i ) const { return *( &index[0] + i ); }
	unsigned short& operator[]( int i ) { return *( &index[0] + i ); }
} Triangle;
#pragma pack()

};

#endif